package com.lancer.cloud.gateway.feign.fallback;

import com.lancer.cloud.common.dto.SysResourceDto;
import com.lancer.cloud.gateway.feign.SysResourceService;
import java.util.Collections;
import java.util.Set;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 *
 *
 * caijinbang
 * @date 2019-06-16 13:32
 */
@Slf4j
@Service
public class SysResourceFallback implements SysResourceService {

    @Override
    public Set<SysResourceDto> listResourceByRole(String roleCode) {
        log.error("调用【lancer-user-service】服务接口【/resource/role/{}】异常", roleCode);
        return Collections.emptySet();
    }
}
